@import './variables.scss';
@import './mixin.scss';

body {
  font-size: $font-size-small-x;
  margin: 0;
  font-family: $baseFontFamily;
}
a:hover {
  color: $main-color;
}

.content-wrapper {
  @include container($content-width)
}

>.el-scrollbar>.el-scrollbar__wrap {
  overflow-x: hidden;
  overflow-y: auto;
}

.layout-wrapper {
  header, footer {
    width: 100%;
  }
  header {
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px 0 #dedede;
    background-color: #fff;
    .line {
      margin: 0;
      height: 1px;
      border: none;
      border-top: 2px solid $main-color;
    }
    .logo-content {
      height: $header-height;
      line-height: $header-height;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .logo-info {
        display: flex;
        align-items: center;
        .logo-img {
          height: $header-height;
          display: flex;
          align-items: center;
          img{
            height: 80%;
          }
        }
      }
    }
  }
}

.page-container {
  @include container($content-width);
  display: flex;
  position: relative;
  transition: 0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1);
  overflow: hidden;
  margin-bottom: 100px;
  .page-main-content {
    width: $page-main-content-width;
    min-height: $content-min-height;
    background-color: $white;
    .main-container {
      padding: 0 10px;
    }
  }
  .el-form-item__content {
    .block {
      .el-range-editor--medium {
        .el-range-separator {
          width: 30px;
        }
      }
    }
  }
  .side-container {
    width: $sidebar-width;
    background: #fff;
    margin-right: $split-width;
    box-shadow: 0px 0px 16px 0px #f5f4fc;
    .side-scroll {
      .el-scrollbar__wrap {
        overflow-x: hidden;
        overflow-y: auto;
      }
    }
    .sidebar-wrapper {
      &.ps-container {
        -ms-touch-action: auto;
        touch-action: auto;
        overflow: hidden !important;
        -ms-overflow-style: none;
      }
      .sidebar {
        >.el-menu>.el-menu-item, >.el-menu>.el-submenu>.el-submenu__title {
          a, .menu-title {
            padding-left: 5px;
          }
          >a>i {
            display: none;
          }
        }
        .el-menu {
          border: 0;
          background: none;
          .el-menu-item {
            height: $siderbar-menu-item-height;
            line-height: $siderbar-menu-item-height;
            &:hover {
              background-color: #fff;
            }
            a {
              height: 100%;
              color: $sidebar-text-color;
              display: block;
              font-size: 15px;
              border-bottom: 1px solid #ebebec;
            }
            span {
              vertical-align: baseline;
            }
            &.is-active {
              a {
                color: $main-color;
                font-weight: bold;
              }
            }
          }
          .el-menu-item-group__title {
            padding: 0;
          }
          // 二级标题样式
          .el-submenu.is-active>.el-submenu__title {
            >.menu-title, >i {
              color: $main-color;
              font-weight: bold;
            }
          }
          .el-submenu.is-opened>.el-submenu__title>.menu-title {
            border-bottom: 0;
          }
          .el-submenu [class^=el-icon-] {
            margin-right: 0;
          }
          .el-submenu {
            // 二级标题样式
            .el-menu .el-submenu .el-submenu__title {
              padding-left: 35px!important;
              font-size: 15px;
            }
            // 三级标题样式
            .el-menu .el-submenu .el-menu .el-menu-item {
              // padding-left: 50px!important;
            }
            .el-submenu__icon-arrow {
              font-size: 18px;
              right: 30px;
            }
            .el-submenu__title {
              font-size: 15px;
              height: $siderbar-menu-item-height;
              line-height: $siderbar-menu-item-height;
              margin-bottom: 10px;
              .menu-title {
                border-bottom: 1px solid #ebebec;
              }
            }
            // 子菜单
            .el-menu-item-group {
              .el-menu-item {
                height: $submenu-item-height;
                line-height: $submenu-item-height;
                padding: 0 20px!important;
                margin-bottom: 16px;
                a {
                  margin: 0;
                  font-size: 14px;
                  display: block;
                  text-decoration: none;
                  padding-left: 10px;
                  padding-right: 10px;
                  background-color: #f0f3f5;
                  white-space: nowrap;
                  text-overflow: ellipsis;
                  overflow: hidden;
                  i {
                    height: 24px;
                    line-height: 24px;
                    width: 24px;
                    background: $main-color;
                    color: #fff;
                    border-radius: 50%;
                    margin-right: 6px;
                    font-size: 14px;
                  }
                }
              }
              .el-menu-item.is-active {
                a {
                  color: $submenu-active-color;
                  background-color: $main-color;
                  font-weight: normal;
                }
              }
            }
          }
        }
      }
    }
  }
  .search-container {
    .operate-btn {
      text-align: center;
    }
  }
}


.footer {
  @include footer;
}

.resize-message-box {
  width: 80vw;
}

.el-dialog__body {
  padding: 5px 20px 20px;
}
.el-tag + .el-tag {
  margin-left: 10px;
}
